home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 11
/
FM Towns Free Software Collection 11.iso
/
t_os
/
tool
/
genji
/
src
/
makefile
< prev
next >
Wrap
Makefile
|
1995-08-10
|
989b
|
52 lines
#マクロ定義
USRD = f:
CPP = $(USRD)\run386 $(USRD)\usr\bin\cpp
CC = $(USRD)\run386 $(USRD)\usr\bin\cc1
ASM = $(USRD)\run386 $(USRD)\usr\bin\gas
LINK = $(USRD)\run386 $(USRD)\usr\bin\ld
EXP_ = $(USRD)\run386 $(USRD)\usr\bin\genexp3
CPOP = -D__GNUC__ -DTOWNS -I $(USRD)/usr/include
CCOP = -O -quiet -msoft-float
ASOP =
LIOP = -N -S
EXOP =
LIB = -L$(USRD)/usr/lib -lce -lt
TMP =i:
#生成規則
.SUFFIXES: .o .c .s
.s.o:
$(ASM) $(ASOP) -o $@ $<
.c.o:
$(CPP) $(CPOP) $< $(TMP)_tmp.i
$(CC) $(CCOP) $(TMP)_tmp.i
$(ASM) $(ASOP) -o $@ $(TMP)_tmp.s
#生成手順
genji.exp : genji.o subobj.o command.o g_main.o print.o
$(LINK) $(LIOP) -o $(TMP)_tmp.bin $(USRD)/usr/lib/crt0.o @objects $(LIB)
$(EXP_) $(TMP)_tmp.bin $@
command.o : command.c genji.h
genji.o : genji.c genji.h
subobj.o : subobj.c genji.h
g_main.o : g_main.c genji.h netdata.c printcom.c
print.o : print.s
clear :
del *.bak
backup :
lha u ..\backup\genji *.*